import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    count: 0,
    reginfo: {},
    // agendaTop: 0,
  },
  mutations: {
    increment(state, num) {
      state.count += num;
    },
    setRegInfo(state, info) {
      state.reginfo = info;
    },
    // setAgendaTop(state, num) {
    //   state.agendaTop = num;
    // },
  },
});